<?php



class ReservationsMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.openbravo.map.ReservationsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(ReservationsPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(ReservationsPeer::TABLE_NAME);
		$tMap->setPhpName('Reservations');
		$tMap->setClassname('Reservations');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID', 'Id', 'VARCHAR', true, 255);

		$tMap->addColumn('CREATED', 'Created', 'TIMESTAMP', true, null);

		$tMap->addColumn('DATENEW', 'Datenew', 'TIMESTAMP', true, null);

		$tMap->addColumn('TITLE', 'Title', 'VARCHAR', true, 255);

		$tMap->addColumn('CHAIRS', 'Chairs', 'INTEGER', true, 11);

		$tMap->addColumn('ISDONE', 'Isdone', 'VARCHAR', true, 1);

		$tMap->addColumn('DESCRIPTION', 'Description', 'VARCHAR', false, 255);

	} 
} 